3.166 \(\int \frac {\tan ^{-1}(a x^n)}{x} \, dx\)

Optimal. Leaf size=39 \[ \frac {i \text {Li}_2\left (-i a x^n\right )}{2 n}-\frac {i \text {Li}_2\left (i a x^n\right )}{2 n} \]

[Out]

1/2*I*polylog(2,-I*a*x^n)/n-1/2*I*polylog(2,I*a*x^n)/n

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {5031, 4848, 2391} \[ \frac {i \text {PolyLog}\left (2,-i a x^n\right )}{2 n}-\frac {i \text {PolyLog}\left (2,i a x^n\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

Int[ArcTan[a*x^n]/x,x]

[Out]

((I/2)*PolyLog[2, (-I)*a*x^n])/n - ((I/2)*PolyLog[2, I*a*x^n])/n

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 4848

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))/(x_), x_Symbol] :> Simp[a*Log[x], x] + (Dist[(I*b)/2, Int[Log[1 - I*c*x
]/x, x], x] - Dist[(I*b)/2, Int[Log[1 + I*c*x]/x, x], x]) /; FreeQ[{a, b, c}, x]

Rule 5031

Int[((a_.) + ArcTan[(c_.)*(x_)^(n_)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/n, Subst[Int[(a + b*ArcTan[c*x])^p
/x, x], x, x^n], x] /; FreeQ[{a, b, c, n}, x] && IGtQ[p, 0]

Rubi steps

\begin {align*} \int \frac {\tan ^{-1}\left (a x^n\right )}{x} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\tan ^{-1}(a x)}{x} \, dx,x,x^n\right )}{n}\\ &=\frac {i \operatorname {Subst}\left (\int \frac {\log (1-i a x)}{x} \, dx,x,x^n\right )}{2 n}-\frac {i \operatorname {Subst}\left (\int \frac {\log (1+i a x)}{x} \, dx,x,x^n\right )}{2 n}\\ &=\frac {i \text {Li}_2\left (-i a x^n\right )}{2 n}-\frac {i \text {Li}_2\left (i a x^n\right )}{2 n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 32, normalized size = 0.82 \[ \frac {i \left (\text {Li}_2\left (-i a x^n\right )-\text {Li}_2\left (i a x^n\right )\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

Integrate[ArcTan[a*x^n]/x,x]

[Out]

((I/2)*(PolyLog[2, (-I)*a*x^n] - PolyLog[2, I*a*x^n]))/n

________________________________________________________________________________________

fricas [B]  time = 0.47, size = 63, normalized size = 1.62 \[ \frac {2 \, n \arctan \left (a x^{n}\right ) \log \relax (x) + i \, n \log \left (i \, a x^{n} + 1\right ) \log \relax (x) - i \, n \log \left (-i \, a x^{n} + 1\right ) \log \relax (x) - i \, {\rm Li}_2\left (i \, a x^{n}\right ) + i \, {\rm Li}_2\left (-i \, a x^{n}\right )}{2 \, n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(a*x^n)/x,x, algorithm="fricas")

[Out]

1/2*(2*n*arctan(a*x^n)*log(x) + I*n*log(I*a*x^n + 1)*log(x) - I*n*log(-I*a*x^n + 1)*log(x) - I*dilog(I*a*x^n)
+ I*dilog(-I*a*x^n))/n

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\arctan \left (a x^{n}\right )}{x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(a*x^n)/x,x, algorithm="giac")

[Out]

integrate(arctan(a*x^n)/x, x)

________________________________________________________________________________________

maple [B]  time = 0.05, size = 94, normalized size = 2.41 \[ \frac {\ln \left (a \,x^{n}\right ) \arctan \left (a \,x^{n}\right )}{n}+\frac {i \ln \left (a \,x^{n}\right ) \ln \left (1+i a \,x^{n}\right )}{2 n}-\frac {i \ln \left (a \,x^{n}\right ) \ln \left (1-i a \,x^{n}\right )}{2 n}+\frac {i \dilog \left (1+i a \,x^{n}\right )}{2 n}-\frac {i \dilog \left (1-i a \,x^{n}\right )}{2 n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arctan(a*x^n)/x,x)

[Out]

1/n*ln(a*x^n)*arctan(a*x^n)+1/2*I/n*ln(a*x^n)*ln(1+I*a*x^n)-1/2*I/n*ln(a*x^n)*ln(1-I*a*x^n)+1/2*I/n*dilog(1+I*
a*x^n)-1/2*I/n*dilog(1-I*a*x^n)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ -a n \int \frac {x^{n} \log \relax (x)}{a^{2} x x^{2 \, n} + x}\,{d x} + \arctan \left (a x^{n}\right ) \log \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(a*x^n)/x,x, algorithm="maxima")

[Out]

-a*n*integrate(x^n*log(x)/(a^2*x*x^(2*n) + x), x) + arctan(a*x^n)*log(x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \[ \int \frac {\mathrm {atan}\left (a\,x^n\right )}{x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(atan(a*x^n)/x,x)

[Out]

int(atan(a*x^n)/x, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {atan}{\left (a x^{n} \right )}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(atan(a*x**n)/x,x)

[Out]

Integral(atan(a*x**n)/x, x)

________________________________________________________________________________________